﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MobileControlGuru
{
    public partial class LoaderForm : Form
    {
        public LoaderForm()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 关闭命令
        /// </summary>
        public void closeOrder()
        {
            //if (this.InvokeRequired)
            //{
            //    if (this.IsDisposed)
            //        return;
            //    if (!this.IsDisposed)
            //    {
            //        this.Dispose();
            //    }
            //}
            //else
            //{
            //    if (this.IsDisposed)
            //        return;
            //    if (!this.IsDisposed)
            //    {
            //        this.Dispose(true);
            //    }
            //}
            this.Close();
        }

        private void LoaderForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (!this.IsDisposed)
            {
                this.Dispose(true);
            }

        }
    }
}
